Skip to content

Conversation

@kyle-a-wong
Copy link
Contributor

@kyle-a-wong kyle-a-wong commented Nov 20, 2025

Adds a new datadriven test for sql stats. This datadriven
test makes it easy to test expected outputs of sql stats
in a deterministic fashion, but not depending on non
deterministic fields such as latencies or bytes written.
Instead, it simply checks that certain values are greater
than 0 or not.

The commands on this test support specifying db
and app-name args to allow for deterministic results of
statement_statistics and transaction_statistics outputs.

Epic: None
Release note: None

@cockroach-teamcity
Copy link
Member

This change is Reviewable

@kyle-a-wong kyle-a-wong changed the title [WIP] Sql stats ddtests sqlstats: add datadriven tests for sql stats Nov 21, 2025
@kyle-a-wong kyle-a-wong marked this pull request as ready for review November 21, 2025 20:01
@kyle-a-wong kyle-a-wong requested a review from a team as a code owner November 21, 2025 20:01
@kyle-a-wong kyle-a-wong requested review from angles-n-daemons and dhartunian and removed request for a team November 21, 2025 20:01
Adds a new datadriven test for sql stats. This datadriven
test makes it easy to test expected outputs of sql stats
in a deterministic fashion, but not depending on non
deterministic fields such as latencies or bytes written.
Instead, it simply checks that certain values are greater
than 0 or not.

The commands on this test support specifying db
and app-name args to allow for deterministic results of
statement_statistics and transaction_statistics outputs.

Epic: None
Release note: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants